package com.demo.Controller;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2023-05-25
 * Time:21:52
 */

import com.demo.module.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * 作者：李四
 */
@Controller
public class UserController {
    @Autowired
    private User user1;

    public void getUser(){
        System.out.println("User1:" + user1);
        User user = user1;
        user.setName("李四");
        System.out.println("User:" + user);
    }

}
